package com.tledu.carLog.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tledu.common.annotation.Excel;
import com.tledu.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 操作日志对象 car_log
 * 
 * @author ruoyi
 * @date 2024-09-02
 */
public class CarLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @Excel(name = "编号")
    private Long id;

    /** 车辆id */
    @Excel(name = "车辆id")
    private Long carId;


    /** 创建者(申请人) */
    @Excel(name = "创建者(申请人)")
    private Long createUser;

    /** 归还时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "归还时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date returnTime;

    /** 操作类型:0代表新增,1代表删除,2代表外借,3代表归还 */
    @Excel(name = "操作类型:0代表新增,1代表删除,2代表外借,3代表归还")
    private Long operateType;

    /** 删除标志（0代表存在 2代表删除） */
    private Long delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCarId(Long carId) 
    {
        this.carId = carId;
    }

    public Long getCarId() 
    {
        return carId;
    }
    public void setCreateUser(Long createUser) 
    {
        this.createUser = createUser;
    }

    public Long getCreateUser() 
    {
        return createUser;
    }
    public void setReturnTime(Date returnTime) 
    {
        this.returnTime = returnTime;
    }

    public Date getReturnTime() 
    {
        return returnTime;
    }
    public void setOperateType(Long operateType) 
    {
        this.operateType = operateType;
    }

    public Long getOperateType() 
    {
        return operateType;
    }
    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("carId", getCarId())
            .append("createUser", getCreateUser())
            .append("createTime", getCreateTime())
            .append("returnTime", getReturnTime())
            .append("operateType", getOperateType())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
